//
//  clsUser.m
//  AntsExpress
//
//  Created by slccper on 16/1/8.
//  Copyright © 2016年 slccper. All rights reserved.
//

#import "clsUser.h"
#import "clsOtherFun.h"
@implementation clsUser
-(id)initWithDic:(NSDictionary *)obj
{
    self = [super init];
    if (self) {
        for (int i=0; i<obj.allKeys.count; i++) {
            if ([self respondsToSelector: [clsOtherFun selectorForColumnName:obj.allKeys[i]]]) {
                [clsOtherFun ObjectSetValue:self :obj.allKeys[i] :obj.allValues[i]];
            }
        }
    }
    return self;
}
//- (void)encodeWithCoder:(NSCoder *)aCoder
//{
//    [aCoder encodeObject:self.name forKey:@"name"];
//    [aCoder encodeInt:self.age forKey:@"age"];
//    [aCoder encodeObject:self.email forKey:@"email"];
//    [aCoder encodeObject:self.password forKey:@"password"];
//}
//- (id)initWithCoder:(NSCoder *)aDecoder
//{
//    if (self = [super init]) {
//        self.name = [aDecoder decodeObjectForKey:@"name"];
//        self.age = [aDecoder decodeIntForKey:@"age"];
//        self.email = [aDecoder decodeObjectForKey:@"email"];
//        self.password = [aDecoder decodeObjectForKey:@"password"];
//    }
//    return self;
//}
@end
